package com.gr.dmbackend.controller.dormaddmin;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.dormaddmin.HandleRepairService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HandleRepairController {

    @Autowired
    private HandleRepairService handleRepairService;

    @PostMapping("/api/dormaddmin/handle-repair")
    public JSONObject handleRepair(@RequestParam int id) {
        return handleRepairService.handleRepair(id);
    }


}
